
//  OAPublicTests.m
//  OANetworkManager_Tests
//
//  Created by TFAppleWork-Summer on 2018/3/7.
//  Copyright © 2018年 GuoRui. All rights reserved.
//

#import "Tests.h"
#import "AppNetworkingManager+OAPublic.h"
#import "AppNetworkingManager+OASubmit.h"
#import "OADailyReportDetailModel.h"
#import "OAUserModel.h"
@interface OAPublicTests : Tests

@end

@implementation OAPublicTests

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample {
    // This is an example of a functional test case.
    // Use XCTAssert and related functions to verify your tests produce the correct results.
}

-(void)testPublicCommonGetInfo{
    
    [self expectation:^(void (^fulfill)(void)) {
        
        
        [AppNetworkingManager commmonGetInfoWithReportId:@"16"
                                                    type:103
                                                complete:^(id object, NSError *error) {
            fulfill();
        }];
    }];
}

-(void)testCommonDelete{
    [self expectation:^(void (^fulfill)(void)) {
        
        [AppNetworkingManager commonDelteWithReportId:@"16"
                                                 type:103
                                             complete:^(id object, NSError *error) {
                                                 if ([object boolValue]) {
                                                     NSLog(@"删除成功");
                                                 }
                                                 else{
                                                     NSLog(@"删除失败：%@",error.localizedDescription);
                                                 }
                                                 fulfill();
                                             }];
    }];
}



- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

@end
